package com.example.demo2;

import com.example.demo2.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@SpringBootApplication
public class Demo2Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context
          =SpringApplication.run(Demo2Application.class, args);
        context.getBean(LoginService.class).login();
    }

}
